package com.neusoft.controller;

import com.neusoft.entity.BanJi;
import com.neusoft.service.BanjiFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.List;

@RestController
@RequestMapping("banji/feign")
public class BanjiFeignComsumerController {

    @Autowired
    private BanjiFeignService banjiFeignService;

  @RequestMapping("queryAll")
    public Object queryAll(){
      return  banjiFeignService.queryAll();
  }

}
